package com.songtech.server.utils;

import com.songtech.server.constant.KeysConstant;

/**
 * Create By YINN on 2018/4/17 10:57
 * Description : 缓存键获取工具
 */
public class GetKeysUtils {

//    public static String combineKey(String keysConstant, String imei){
//
//        StringBuffer stringBuffer = new StringBuffer(keysConstant);
//        stringBuffer.append("_");
//        stringBuffer.append(imei);
//
//        return stringBuffer.toString();
//    }


    public static String combineAnyKeys(String str, String... s){

        StringBuffer stringBuffer = new StringBuffer(str);
        for (int i=0;i<s.length;i++){
            stringBuffer.append("_");
            stringBuffer.append(s[i]);
        }

        return stringBuffer.toString();
    }
}
